package com.zryc.shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 商品图片信息表
 * </p>
 *
 * @author xujiajun
 * @since 2022-10-17
 */
@TableName("product_pic_info")
@ApiModel(value = "ProductPicInfo对象", description = "商品图片信息表")
public class ProductPicInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("商品图片ID")
    @TableId(value = "product_pic_id", type = IdType.AUTO)
    private Integer productPicId;

    @ApiModelProperty("商品ID")
    private Integer productId;

    @ApiModelProperty("图片描述")
    private String picDesc;

    @ApiModelProperty("图片URL")
    private String picUrl;

    @ApiModelProperty("是否主图：1.主图 2.展示图 3.详情图")
    private Byte isMaster;

    @ApiModelProperty("图片排序")
    private Byte picOrder;

    @ApiModelProperty("图片是否有效：0无效 1有效")
    private Byte picStatus;

    public Integer getProductPicId() {
        return productPicId;
    }

    public void setProductPicId(Integer productPicId) {
        this.productPicId = productPicId;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public String getPicDesc() {
        return picDesc;
    }

    public void setPicDesc(String picDesc) {
        this.picDesc = picDesc;
    }

    public String getPicUrl() {
        return picUrl;
    }

    public void setPicUrl(String picUrl) {
        this.picUrl = picUrl;
    }

    public Byte getIsMaster() {
        return isMaster;
    }

    public void setIsMaster(Byte isMaster) {
        this.isMaster = isMaster;
    }

    public Byte getPicOrder() {
        return picOrder;
    }

    public void setPicOrder(Byte picOrder) {
        this.picOrder = picOrder;
    }

    public Byte getPicStatus() {
        return picStatus;
    }

    public void setPicStatus(Byte picStatus) {
        this.picStatus = picStatus;
    }

    @Override
    public String toString() {
        return "ProductPicInfo{" +
            "productPicId = " + productPicId +
            ", productId = " + productId +
            ", picDesc = " + picDesc +
            ", picUrl = " + picUrl +
            ", isMaster = " + isMaster +
            ", picOrder = " + picOrder +
            ", picStatus = " + picStatus +
        "}";
    }
}
